package com.nut.course.api.biz;

import com.nut.course.common.Result;
import com.nut.course.entity.PartnerTeacher;
import com.nut.course.service.PartnerTeacherService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

//学校端 查看课程
@Slf4j
@RestController
@RequestMapping("/schoolTeacher")
public class SchoolTeacherController {

    @Autowired
    private PartnerTeacherService partnerTeacherService;

    @GetMapping(value = "/{id}")
    public Result<PartnerTeacher> detail(@PathVariable Integer id) {
        return partnerTeacherService.getById(id);
    }


}
